#ifndef __WRITE_CGIC_H__
#define __WRITE_CGIC_H__

#include <stdint.h>

struct shm_addr
{
	char cgi_status;
	char qt_status;
	struct env_info rt_status;
};

struct env_info{
	uint8_t storage_status;
	uint8_t led_status;
	uint8_t buzzer_status;
	uint8_t fan_status;
	uint8_t seg_status;
	char    x;
	char    y;
	char    z;
	char    samplingTime[20];
	float   temperature;
	float   temperatureMIN;
	float   temperatureMAX;
	float   humidity;
	float   humidityMIN;
	float   humidityMAX;
	float   illumination;
	float   illuminationMIN;
	float   illuminationMAX;
	float   battery;
	float   adc;
	float   adcMIN;
	goods_msg goods_info[10];
};

void write_cgic(void);

#endif
